﻿<?php
	require_once 'been/Push.class.php';
	
	header("Content-Type: text/html; charset=utf-8");
	
	$conf =array(
		"AppID"=>'3rIp20Hfx2AFyGWzi7Z1M3',
		"AppKey"=>'FCCb2M5xVd7LNy3DVepDb',
		"MasterSecret"=>'GIhNoN8FDP6C3sGVpGKrr8',
		"Host"=>'http://sdk.open.api.igexin.com/apiex.htm'
);
	
	$push = new Push($conf);
	
	/* $target2 = array(
		"type"=>2,
		"ClientID"=>'e08a80efcc7c392b93332e3622b0d155',
		"DeviceToken"=>'08fdc228ccbc7e4149333764b6ef3459d8603e81899fd023f23fd18b8e800120',
	); */
	/* $target2 = array(
			"type"=>2,
			"ClientID"=>'fda9f79b5a89f156a01007066a361dc8',
			"DeviceToken"=>'5668a6c204021072d27213ad5b33efacc4df3872503d0b7427c208d4e16f36c4',
	); */
	$target2 = array(
			"type"=>2,
			"ClientID"=>'960e797ea67c3d112fa6bfda2074f5a0',
			"DeviceToken"=>'18f95fb9c4358395f89d7273b85a9addd2e0893687574681ae92cec235152b29',
	);
	$target1 = array(
		"type"=>1,
		"ClientID"=>'9e697a6308e8a9379ea8c9e247f3b45b',
		"DeviceToken"=>'',
	);
	
	$content = array(
		"info"=>'trans test透传',
		"title"=>'howdo',
		"text"=>'howdo tester内容'
	);
	echo "发送内容:<br/>";
	var_dump($content);
	
	//echo "<br/>test android<br/>";
	
	//echo $push->pushToSingle($target1, $content);
	echo "<br/>test ios:<br/>";
	echo $push->pushToSingle($target2, $content);
	